package practice_02;

public class Skills {
    private Skill[] skills;

    public Skill[] getSkills() {
        return skills;
    }

    public void setSkills(Skill[] skills) {
        this.skills = skills;
    }

    public Skills(String name, int attack) {
        switch (name) {
            case "[希尔]": {
                this.skills = new Skill[]{
                        new Skill("《强袭》", "你逃不掉！", (int) (attack * 0.7), (int) (attack * 0.45)),
                        new Skill("《蝶舞》", "随蝴蝶一起消散吧 旧日的幻影！", (int) (attack * 1.5), (int) (attack * 0.5)),
                };
                break;
            }
            case "[李信]": {
                this.skills = new Skill[]{
                        new Skill("《幻影剑舞》", "快刀斩乱麻", (int) (attack * 0.8), (int) (attack * 0.3)),
                        new Skill("《一念神魔》", "一念通天，神魔无惧！", attack * 2, (int) (attack * 0.5))
                };
                break;
            }
            case "[不动游星]": {
                this.skills = new Skill[]{
                        new Skill("《卫星拳》", "集中的星会唤起新的力量，化为闪耀之道吧！同调召唤，出现吧，废品战士！Scrap Fist！", (int) (attack * 0.9), (int) (attack * .02)),
                        new Skill("《流星之怒》", "聚集的梦之结晶将开启全新的进化之门，成为光芒闪耀的道路吧！ 加速同调，诞生吧，流星龙！流星激爆弹！", (int) (attack * 1.5), (int) (attack * 0.3)),
                };
                break;
            }
            case "[杰克 阿特拉斯]": {
                this.skills = new Skill[]{
                        new Skill("《红莲魔爪》", "王者的震撼，现在在此展现强势，看好这撼天动地的力量吧！同调召唤，吾之魂，真红魔龙！霸者践踏！", (int) (attack * 0.9), (int) (attack * 0.3)),
                        new Skill("《魔龙煌灭》", "王者与恶魔，现在在此交汇，燃烧的灵魂啊，爆发出造创天地时的咆哮吧！双重同调召唤，出现吧，红莲新星龙！恶魔之熄", (int) (attack * 2.3), (int) (attack * 0.7)),
                };
            }
        }
    }
}
